nt_schemes_templates();
$plugin->dynamic_tags->print_templates();
$this->get_loader()->register_additional_templates();
/**
* Elementor editor footer.
*
* Fires on Elementor editor before closing the body tag.
*
* Used to prints scripts or any other HTML before closing the body tag.
*
* @since 1.0.0
*/
do_action( 'elementor/editor/footer' );
}
/**
* Set edit mode.
*
* Used to update the edit mode.
*
* @since 1.0.0
* @access public
*
* @param bool $edit_mode Whether the edit mode is active.
*/
public function set_edit_mode( $edit_mode ) {
$this->is_edit_mode = $edit_mode;
}
/**
* Editor constructor.
*
* Initializing Elementor editor and redirect from old URL structure of
* Elementor editor.
*
* @since 1.0.0
* @access public
*/
public function __construct() {
Plugin::$instance->data_manager_v2->register_controller( new Data\Globals\Controller() );
$this->notice_bar = new Notice_Bar();
$this->promotion = new Promotion();
add_action( 'admin_action_elementor', [ $this, 'init' ] );
add_action( 'template_redirect', [ $this, 'redirect_to_new_url' ] );
$this->register_editor_v2_experiment();
// Handle autocomplete feature for URL control.
add_filter( 'wp_link_query_args', [ $this, 'filter_wp_link_query_args' ] );
add_filter( 'wp_link_query', [ $this, 'filter_wp_link_query' ] );
}
/**
* @since 2.2.0
* @access public
*/
public function filter_wp_link_query_args( $query ) {
$library_cpt_key = array_search( Source_Local::CPT, $query['post_type'], true );
if ( false !== $library_cpt_key ) {
unset( $query['post_type'][ $library_cpt_key ] );
}
return $query;
}
/**
* @since 2.2.0
* @access public
*/
public function filter_wp_link_query( $results ) {
// PHPCS - The user data is not used.
if ( isset( $_POST['editor'] ) && 'elementor' === $_POST['editor'] ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing
$post_type_object = get_post_type_object( 'post' );
$post_label = $post_type_object->labels->singular_name;
foreach ( $results as & $result ) {
if ( 'post' === get_post_type( $result['ID'] ) ) {
$result['info'] = $post_label;
}
}
}
return $results;
}
public function set_post_id( $post_id ) {
$this->post_id = $post_id;
}
/**
* Get loader.
*
* @return Editor_Loader
*/
private function get_loader() {
if ( ! $this->loader ) {
$this->loader = new Editor_Loader( Config_Provider_Factory::create() );
$this->loader->register_hooks();
}
return $this->loader;
}
/**
* Adding Editor V2 experiment.
*
* @return void
* @throws \Exception
*/
private function register_editor_v2_experiment() {
Plugin::$instance->experiments->add_feature( [
'name' => static::EDITOR_V2_EXPERIMENT_NAME,
'title' => esc_html__( 'Editor Top Bar', 'elementor' ),
'description' => sprintf(
esc_html__(
'Get a sneak peek of the new Editor powered by React. The beautiful design and experimental layout of the Top bar are just some of the exciting tools on their way. %s',
'elementor'
),
'' . esc_html__( 'Learn more', 'elementor' ) . ''
),
'default' => Experiments_Manager::STATE_INACTIVE,
'status' => Experiments_Manager::RELEASE_STATUS_ALPHA,
] );
}
}
Fatal error: Uncaught Error: Class 'Elementor\Core\Editor\Editor' not found in /var/www/html/inovaresquadriasdealuminio.com.br/web/wp-content/plugins/elementor/includes/plugin.php:725
Stack trace:
#0 /var/www/html/inovaresquadriasdealuminio.com.br/web/wp-content/plugins/elementor/includes/plugin.php(647): Elementor\Plugin->init_components()
#1 /var/www/html/inovaresquadriasdealuminio.com.br/web/wp-includes/class-wp-hook.php(307): Elementor\Plugin->init('')
#2 /var/www/html/inovaresquadriasdealuminio.com.br/web/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#3 /var/www/html/inovaresquadriasdealuminio.com.br/web/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#4 /var/www/html/inovaresquadriasdealuminio.com.br/web/wp-settings.php(598): do_action('init')
#5 /var/www/html/inovaresquadriasdealuminio.com.br/web/wp-config.php(117): require_once('/var/www/html/i...')
#6 /var/www/html/inovaresquadriasdealuminio.com.br/web/wp-load.php(50): require_once('/var/www/html/i...')
#7 /var/www/html/inovaresqu in /var/www/html/inovaresquadriasdealuminio.com.br/web/wp-content/plugins/elementor/includes/plugin.php on line 725